package com.zygh.dlqwservice.module.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zygh.dlqwservice.module.entity.Special;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lee
 * @since 2020-12-24
 */
@Mapper
@Repository
public interface SpecialMapper extends BaseMapper<Special> {
    /**
     * 获取勤务
     * @param wrapper 封装参数
     * @return List<Special>
     */
    @Select("select  hierarchy,hierarchy_name from special sp ${ew.customSqlSegment} ")
    List<Special> getSpecials(@Param(Constants.WRAPPER)Wrapper wrapper);
}
